package com.ugoodtech.mdcc.web.dto;


import com.ugoodtech.mdcc.core.domain.QuestionGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright © 2013 All Rights Reserved, Ugood Technology, Inc.
 */
@ApiModel("分组数据")
public class QuestionGroupResponse {
    @ApiModelProperty("编号")
    private Long groupId;
    @ApiModelProperty("序号")
    private Integer index;
    @ApiModelProperty("题目标题")
    private String title;
    @ApiModelProperty("时间")
    private String creationTime;


    public QuestionGroupResponse(QuestionGroup questionGroup) {
        this.groupId=questionGroup.getId();
        this.creationTime=questionGroup.getCreationTimeStr();
        this.index=questionGroup.getIdx();
        this.title=questionGroup.getTitle();
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }
}
